/*
 * [文 件 名]:B5MNetworkBroadcastReceiver.java
 * [创 建 人]:allenwang
 * [创建时间]:Apr 3, 2014
 * [编　　码]:UTF-8
 * [版　　权]:Copyright © 2012 B5Msoft Co,Ltd. 
*/

package com.core.util;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;

/**
 *	[简要描述]:
 *	[详细描述]:
 *	@author	[allenwang]
 *	@email	[allen.wang@b5m.com]
 *	@version	[版本号,Apr 3, 2014]
 *	@see		[B5MNetworkBroadcastReceiver]
 *	@package	[com.plus.core.api]
 *	@since	[PLUSCore]
 */
public class B5MNetworkBroadcastReceiver extends BroadcastReceiver
{
    /**
     *	[简要描述]:
     *	[详细描述]:
     * 
     *	@param context
     *	@param intent
     *	@exception 
     *	@see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
     */
    @Override
    public void onReceive(Context context , Intent intent)
    {
        if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction()))
        {
            B5MNetworkUtils.CURRENT_NETWORK = B5MNetworkUtils.getNetworkState(context);
        }
    }
}
